<template>
	<view class="container">
		<rich-text :nodes="htmlNodes"></rich-text>
	</view>
</template>

<script>
	import { userAgreement } from '@/api/setting.js'
	export default {
		data() {
			return {
				htmlNodes: null,
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList() {
				userAgreement({
					type: 1
				}).then(res => {
					if (res.code == 0) {
						this.htmlNodes = res.data.content
					}
				})
			},
		}
	}

</script>

<style scoped>
	.container {
		width: 750rpx;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		background: linear-gradient(90deg, #F2F0FF, #EDEBFF, #F3F8FF);
	}

</style>

